#ifndef _FS_HASH
#define _FS_HASH

#include "conn.h"

typedef struct hash {
    Conn *conn;
    int max;
    int n;
} Hash;

Hash *hash_create (int len);
void hash_close (Hash *phash);
void hash_free (Hash *phash, int sock);
int hash_alloc (Hash *phash, char *uri, unsigned int ip);
int hash_check (Hash *phash, int sock);

#endif
